//coordin.h -----structure templates and function prototypes
//structure templates
#ifndef _COORDIN_H_
#define _COORDIN_H_

// structure declarations
struct polar
{
    double distance; // distance from origin
    double angle; // direction from origin
};

struct rect
{
    double x; // horizontal distance from origin
    double y; // vertical distance from origin
};

// prototypes
polar rect_to_polar(rect xypos);
void show_polar(polar dapos);

#endif // _COORDIN_H_